/*
 * Copyright 2010, 2011 Matt Oliveri
 *
 * This file is part of JConfigGen
 *
 * JConfigGen is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * JConfigGen is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with JConfigGen.  If not, see <http://www.gnu.org/licenses/>.
 */

package atma.jconfiggen;

import java.io.PrintStream;

/** Simple immutable record to describe a parameter.
 * Contains a type and an identifier, both stored as {@link String}s.
 * This class does not override {@link #equals(Object)} or {@link #hashCode()}.
 */
public final class Param
{
	private final String type;
	private final String id;

	/** Construct a {@code Param}.
	 * @param t The type of the parameter.
	 * @param i The name (identifier) of the parameter.
	 */
	public Param(String t,String i) {type = t;id = i;}

	void print(PrintStream out)
	{
		out.print("final ");
		out.print(type);
		out.print(' ');
		out.print(id);
	}
}
